<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- [js] 深度克隆对象的方法有哪些，并把你认为最好的写出来 -->
    
</body>
<script>

// [js] 写一个使两个整数进行交换的方法（不能使用临时变量）
let a = 1;
let b = 2;
 [a,b] = [b, a];
console.log(a);
console.log(b);

var a1 = 1,b1 = 2;
a1 = b1+a1;
b1 = a1-b1;
a1 = a1-b1;
console.log(a1);
console.log(b1);
</script>
</html>